<script>
  export let name = 'World';
</script>

<div class="hello">
  <h2>Hello {name}!</h2>
  <p>这是一个Svelte组件示例</p>
</div>

<style>
  .hello {
    text-align: center;
    padding: 2rem;
    background: #f0f8ff;
    border-radius: 8px;
    margin: 1rem 0;
  }
  
  h2 {
    color: #ff3e00;
    margin-bottom: 1rem;
  }
  
  p {
    color: #666;
  }
</style>
